#pragma strict


//public var tappo : float;
public var aika : float;
var obj : GameObject;
//public var pomo : GameObject;

function Start () {

}

function Update () {

if (aika > 2){
	
	aika=0;
	
	var clone=Instantiate(obj, transform.position, transform.rotation); 

	Destroy(clone,30);

}

if (aika > 7) {
	
	aika=0;

GetComponent(SPAWNING).enabled = false;

}


aika+= Time.deltaTime;

}